<%inherit file="/base.mako"/>
${h.link_to('List', h.url_for(action='index', id=None))}
<br/>
${h.form(h.url(action='save_add'), method='post')}
Name: ${h.text_field('username')}
<br/>
Password: ${h.text_field('password')}
<br/>
Email: ${h.text_field('email')}
<br/>
Group: ${h.select('group_id',  h.format_options(c.groups, value_prop='uid', caption_prop='name', add_empty=False))}
<br/>
Roles:
<br/>
% for item in c.roles:
${item.name}: ${h.check_box('$role.' + str(item.uid))}
<br/>
% endfor
${h.submit(u'Add')}
${h.end_form()}